//
//  Extension+UILabel.swift
//  Webo
//
//  Created by 曾静 on 16/6/27.
//  Copyright © 2016年 qq. All rights reserved.
//


import UIKit

extension UILabel {
    
    convenience init(textColor:UIColor,textSize:CGFloat,maxWidth:CGFloat = 0) {
        
        self.init()
        
        self.textColor = textColor
        
        self.font = UIFont.systemFontOfSize(textSize)
        
        if maxWidth > 0 {
            
            
            self.preferredMaxLayoutWidth = maxWidth
            
            self.numberOfLines = 0
        }
    }
    
}
